-- GENERATED SPELL FOR [Skettis Talonite] --


function spell0_21650(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21650', 2336, 1)
end

function spell1_21650(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21650', 500, 1)
end

function Sorts_21650(pUnit, Event)
local choix_sorts_21650 = math.random(0, 1)
if choix_sorts_21650 == 0 then
pUnit:RegisterEvent('spell0_21650', 1, 1)
end
if choix_sorts_21650 == 1 then
pUnit:RegisterEvent('spell1_21650', 1, 1)
end
end

function mob21650_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21650', math.random(1500, 3000), 1)
end

function mob21650_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21650_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21650_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21650, 1, 'mob21650_Action')
RegisterUnitEvent(21650, 2, 'mob21650_Leave')
RegisterUnitEvent(21650, 3, 'mob21650_Kill')
RegisterUnitEvent(21650, 4, 'mob21650_Die')
